<!--<?php
require_once template('header'); 
print <<<EOT
<script type="Text/Javascript" language="JavaScript">
function add(key1,key2)
{
    var target=document.getElementById(key1);
	target.style.display=(target.style.display=="block")?"none":"block";
	 var target2=document.getElementById(key2);
	target2.style.display=(target.style.display=="block")?"none":"block";
}
</script>
<!-- 右边开始 -->
		<div id="location"><p><b>$navigation</b></p></div>
		<div class="member_xg">
			<div class="title8"><span>选择收获地址</span></div>
			<form enctype="multipart/form-data" method="post" action="$cart_buy_url" name="mvmmall" onsubmit="javascript:return check_userinfo()">
			<div class="ca1">
				<a href="member.php?action=address">$lang[click_edit]</a>
				<input name="address" type="radio" onclick="add('ad1','ad2')" value="1" checked="checked"/><label for="ctl00_ContentPlaceHolder1_ucCheckOutStep_ShippingAddress_rbtFromAddressBook">$lang[select_add]</label> 
				<input name="address" type="radio" onclick="add('ad1','ad2')" value="2"/><label for="ctl00_ContentPlaceHolder1_ucCheckOutStep_ShippingAddress_rbtUseNewAddress">$lang[new_address]</label>
			</div>
			
			<div id="ad1" style="display:block">
            	<table cellspacing="0" cellpadding="0" class="ca2">

<!--
EOT;
foreach ($member_address  as $val){
print <<<EOT
-->	             
					<tr>
						<th width="40"><input type="radio" name="con_address"  value="$val[id]" checked="checked" /></th>
						<th colspan="4" align="left"><strong>$val[add_name]&nbsp;</strong></th>
					</tr>
					<tr>
						<td rowspan="3"></td>
						<td width="100">$lang[buyer_name]：</td>
						<td>$val[consignee]</td>
						<td width="100">$lang[telb]：</td>
						<td>$val[mobile]</td>
					</tr>
					<tr>
						<td>$lang[tel]：</td>
						<td>$val[tel]</td>
						<td>$lang[email]：</td>
						<td>$val[email]</td>
					</tr>
					<tr>
						<td>$lang[user_zip]：</td>
						<td>$val[zipcode]</td>
						<td>$lang[address]：</td>
						<td>$val[province] $val[city] $val[address]</td>
				   </tr>
<!--
EOT;
} print <<<EOT
-->			
        		</table>
			</div>  
			      
			<div id="ad2" style="display:none">
				<fieldset class="cat1">
					<legend>$lang[payusernamea]</legend>
					<dl>	
						<dt><span class="dod8">$lang[buyer_name]</span></dt>
						<dd><input name="buyer_name3" type="text" class="inp" id="buyer_name3" value="$consig[name]" maxlength="80" /></dd>
					</dl>
					<dl>
						<dt><span class="dod8">$lang[buyer_email]</span></dt>
						<dd><input name="buyer_email1" type="text" class="inp" id="buyer_email1" value="$consig[email]" maxlength="180" /></dd>
					</dl>
					<dl>
						<dt>$lang[ceo_phone]</dt>
						<dd><input name="buyer_tel3" type="text" class="inp" id="buyer_tel3" value="$consig[tel]" maxlength="18" />
						</dd>
					</dl>
					<dl>
						<dt><span class="dod8">$lang[telb]</span></dt>
						<dd><input name="buyer_tel4" type="text" class="inp" id="buyer_tel4" value="$consig[telb]" maxlength="20" /></dd>
					</dl>
					<dl>
						<dt><span class="dod8">$lang[buyer_add]</span></dt>
						<dd><script src="include/javascript/initcity.js"></script>
						   <select onchange="initcity();" id="province" name="province">
						   <script>creatprovince('$consig[province]');</script>
						  </select>
						   <select id="city" name="city"><script>initcity('$consig[city]');</script></select><input name="address2" type="text" class="inp" id="address2" value="$consig[address]" maxlength="255" /></dd>
					</dl>
					<dl>
						<dt><span class="dod8">$lang[user_zip]</span></dt>
						<dd><input name="zip3" type="text" class="inp" id="zip3" value="$consig[zip]" maxlength="8" /></dd>
					</dl>
				</fieldset>
			</div>			
			<p class="ca6" style="margin:10px 20px;"><img onmouseover="this.style.cursor='hand'" onclick="history.back(-1)" src="$imgpath/orderNext1.gif" /><input  type=image src="$imgpath/orderNext2.gif" /></p>	
			</form>
		</div>
		<div class="title_b"><p></p></div>
<!-- 右边结束 -->
<!--
EOT;
?>-->